<template>
  <div class="about-container">
    <h2>关于我们</h2>
    <div class="about-content">
      <div class="about-intro">
        <p>这是一个使用Vue 3、TypeScript和Vue Router构建的示例项目，展示了如何创建一个可复用的页面头部导航组件。</p>
        <p>该组件具有以下特点：</p>
        <ul>
          <li>左侧显示Logo和标题</li>
          <li>中间包含到各模块的导航链接</li>
          <li>右侧提供用户菜单，包含下拉功能</li>
          <li>响应式设计，适配不同屏幕尺寸</li>
          <li>支持自定义配置</li>
        </ul>
      </div>
      <div class="tech-stack">
        <h3>技术栈</h3>
        <div class="tech-list">
          <div class="tech-item">
            <div class="tech-name">Vue 3</div>
            <div class="tech-desc">渐进式JavaScript框架</div>
          </div>
          <div class="tech-item">
            <div class="tech-name">TypeScript</div>
            <div class="tech-desc">类型安全的JavaScript超集</div>
          </div>
          <div class="tech-item">
            <div class="tech-name">Vue Router</div>
            <div class="tech-desc">Vue.js的官方路由管理器</div>
          </div>
          <div class="tech-item">
            <div class="tech-name">Vite</div>
            <div class="tech-desc">下一代前端构建工具</div>
          </div>
        </div>
      </div>
      <div class="team-info">
        <h3>团队成员</h3>
        <div class="team-members">
          <div class="member">
            <div class="member-avatar">张</div>
            <div class="member-name">张三</div>
            <div class="member-role">前端工程师</div>
          </div>
          <div class="member">
            <div class="member-avatar">李</div>
            <div class="member-name">李四</div>
            <div class="member-role">UI设计师</div>
          </div>
          <div class="member">
            <div class="member-avatar">王</div>
            <div class="member-name">王五</div>
            <div class="member-role">项目经理</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts"></script>

<style scoped>
.about-container {
  padding: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 32px;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-intro {
  background-color: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-intro p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.about-intro p:last-child {
  margin-bottom: 24px;
}

.about-intro ul {
  padding-left: 24px;
  margin: 0;
}

.about-intro li {
  font-size: 16px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.6;
}

h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

/* 技术栈 */
.tech-stack {
  background-color: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tech-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.tech-item {
  padding: 16px;
  background-color: #f5f5f5;
  border-radius: 6px;
  text-align: center;
}

.tech-name {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.tech-desc {
  font-size: 14px;
  color: #666;
}

/* 团队成员 */
.team-info {
  background-color: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}

.member {
  text-align: center;
}

.member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #1890ff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 500;
  margin: 0 auto 16px;
}

.member-name {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.member-role {
  font-size: 14px;
  color: #666;
}

@media (max-width: 768px) {
  .about-container {
    padding: 20px;
  }
  
  .tech-list,
  .team-members {
    grid-template-columns: 1fr;
  }
}
</style>